package com.kun.dto;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@ToString
@NoArgsConstructor
public class PageDomain {

    /**
     * 当前记录起始索引
     */
    private Integer current;

    /**
     * 每页显示记录数
     */
    private Integer pageSize;

    public PageDomain(String pageNum, String pageSize) {
        int pageNum1 = 1;
        if (pageNum != null) pageNum1 = Integer.parseInt(pageNum);
        this.current = pageNum1;
        int pageSize1 = 10;
        if (pageSize != null) pageSize1 = Integer.parseInt(pageSize);
        this.pageSize = pageSize1;
    }

}
